import { createStore } from 'vuex'
import templates, { TemplatesProps } from './templates'
import user, { UserProps } from './user'
import editor, { EditorGlobalData } from './editor'

export interface GlobalDataProps {
  user: UserProps;
  templates: TemplatesProps;
  editor: EditorGlobalData;
}

const store = createStore({
  modules: {
    user,
    templates,
    editor
  }
})

export default store
